package com.mode.mediator.pattern;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/27 15:51
 */
public class Women extends Person{
    public Women(String name, int condition, Mediator mediator) {
        super(name, condition, mediator);
    }

    @Override
    public void getCompation(Person person) {
        this.getMediator().setWomen(this);
        this.getMediator().getCompantion(person);
    }
}
